package com.dlyk.query;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description:
 * @author: ajie
 * @date: 2024/7/19 14:41:08
 * @version: 1.0
 */
@Data
public class ActivityQuery extends BaseQuery{

    private Integer id;

    private Integer ownerId;

    private String name;

    //前端传过来的是一个格式为：YYYY-MM-DD HH:mm:ss 的字符串日期，后台接收要把字符串的日期转成java.util.Date类型，需要使用@DateTimeFormat注解
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    private BigDecimal cost;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String description;
}
